-- GENERATED SPELL FOR [Vorakem Doomspeaker] --


function spell0_18679(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(8599,pUnit)
pUnit:RegisterEvent('Sorts_18679', 544, 1)
end

function spell1_18679(pUnit, Event) --@Hamstring,n/a--
pUnit:FullCastSpellOnTarget(9080,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18679', 10314, 1)
end

function Sorts_18679(pUnit, Event)
local choix_sorts_18679 = math.random(0, 1)
if choix_sorts_18679 == 0 then
pUnit:RegisterEvent('spell0_18679', 1, 1)
end
if choix_sorts_18679 == 1 then
pUnit:RegisterEvent('spell1_18679', 1, 1)
end
end

function mob18679_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18679', math.random(1500, 3000), 1)
end

function mob18679_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18679_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18679_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18679, 1, 'mob18679_Action')
RegisterUnitEvent(18679, 2, 'mob18679_Leave')
RegisterUnitEvent(18679, 3, 'mob18679_Kill')
RegisterUnitEvent(18679, 4, 'mob18679_Die')
